package cn.micro.keep.accounts.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * <p>
 * 申请加入分享组表
 * </p>
 *
 * @author 柘阳科技
 * @since 2023-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AccountOdsShareGroupApplyJoinRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 申请记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long applyUserId;

    /**
     * 分享组ID
     */
    private Long shareGroupId;

    /**
     * 申请描述
     */
    private String applyDesc;

    /**
     * 状态：0待审核，1通过，2拒绝
     */
    private Integer status;

    /**
     * 审核描述
     */
    private String approveDesc;

    /**
     * 创建时间
     */
    @TableField(fill= FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill= FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public static final String ID = "id";

    public static final String APPLY_USER_ID = "apply_user_id";

    public static final String SHARE_GROUP_ID = "share_group_id";

    public static final String APPLY_DESC = "apply_desc";

    public static final String STATUS = "status";

    public static final String APPROVE_DESC = "approve_desc";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
